package com.kdd.campus.sh.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/****
 * @Author:shenkunlin
 * @Description:ShCategory构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel(description = "ShCategory",value = "ShCategory")
@Table(name="sh_category")
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ShCategory implements Serializable{

	@ApiModelProperty(value = "")
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
	private Integer id;//

	@ApiModelProperty(value = "父分类id（自连接）")
    @Column(name = "parent_id")
	private Integer parentId;//父分类id（自连接）

	@ApiModelProperty(value = "商品名称")
    @Column(name = "name")
	private String name;//商品名称

	@ApiModelProperty(value = "显示状态(0:不显示 1:显示)")
    @Column(name = "show_status")
	private Integer showStatus;//显示状态(0:不显示 1:显示)

	@ApiModelProperty(value = "图标")
    @Column(name = "icon_url")
	private String iconUrl;//图标

	@ApiModelProperty(value = "轮播图图片")
	@Column(name = "banner_url")
	private String bannerUrl;//图标

	@ApiModelProperty(value = "")
	@Column(name = "wrap_banner_url")
	private String wrapBannerUrl;//

	@ApiModelProperty(value = "图片")
	@Column(name = "image_url")
	private String imageUrl;

	@ApiModelProperty(value = "分类描述")
	@Column(name = "front_name")
	private String frontName;

	@ApiModelProperty(value = "分类的位置(0:首页)")
    @Column(name = "location")
	private Integer location;//分类的位置(0:首页)
}
